﻿using System.Collections.Generic;

namespace Handin1
{
    public interface IItemCache
    {
        // Return (possibly empty) list of items that match search criteria
        // partnumber = 0 (wild card) or specific part number
        // description = "" (wild card) or string with free text
        List<IItem> LookUpItem(ulong partnumber, string description);
        // Add items (found through sub-suppliers) to local cache of known items
        void AddItems(List<IItem> items);
        // Remove items from local cache of known items (because they are too old)
        void RemoveItems(List<IItem> items);
    }
}